<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:s="http://jboss.com/products/seam/taglib"
  template="/WEB-INF/templates/template.xhtml"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich">
  
  <ui:define name="head">
    
    </ui:define>
<ui:define name="descuentos">
   <center >
   <div class="divabm">
	<h:outputText value="Descuentos"  styleClass="tituloabm"/>
		<br/>
		<br/>
		<h:form id="abmmaquinaform">
			<table>
				<tr>
					<th></th>
					<ui:repeat value="#{dtoCtrl.lineas}" var="l" styleClass="richDataTable">
						<th>
							<h:outputText value="#{l.nombre}" />
						</th>
					</ui:repeat>
				</tr>
				<ui:repeat value="#{dtoCtrl.valores}" var="v" styleClass="richDataTable">
					<tr>
					<td>
						<h:outputText value="#{v}" />
					</td>
					<ui:repeat value="#{dtoCtrl.lineas}" var="l" styleClass="richDataTable">
						<td>
							<h:inputText value="#{dtoCtrl.porcentaje(v,l).forView}" styleClass="numbers_discount"/>
						</td>
					</ui:repeat>
					</tr>
				</ui:repeat>
			</table>

		<h:panelGrid columns="1">
	   		   	<h:commandButton action="#{dtoCtrl.saveDiscount}" value ="Guardar" styleClass="guardarbutton"  />
    	</h:panelGrid>		 

	</h:form>		
		
		
					
	</div>
	</center>
</ui:define>

	<ui:define name="body">  
	</ui:define>

</ui:composition>


